#ifndef __STATE_AVI_ENCODER_H__
#define __STATE_AVI_ENCODER_H__

#define AVI_ENCODER_STATE_IDLE		0x00000000
#define AVI_ENCODER_STATE_VIDEO		0x00000001
#define AVI_ENCODER_STATE_SENSOR	0x00000002
#define AVI_ENCODER_STATE_PACKER0	0x00000004
#define AVI_ENCODER_STATE_PACKER1	0x00000008

extern INT32S	avi_encode_state_task_create(INT8U pori);
extern INT32S	avi_encode_state_task_del(void);

extern void		avi_encoder_state_set(INT32U stateSetting);
extern INT32U	avi_encoder_state_get(void);
extern void		avi_encoder_state_clear(INT32U stateSetting);
extern void		avi_enc_buffer_free(void);

extern INT32S	ap_jpeg_get_one_frame_on_recording(INT32U addr, INT32U *len);

extern void avi_encode_force_once_to_front(void);
extern void avi_encode_force_once_to_rear(void);
#endif // __STATE_AVI_ENCODER_H__
